<div class="modal-content">
	<div class="modal-header">
		<h4 class="modal-title">添加按钮</h4>
		<button type="button" class="close" data-dismiss="modal"
			aria-label="Close">
			<span aria-hidden="true">×</span>
		</button>
	</div>
	<div class="modal-body">
		<div class="form-group row">
			<label class="col-sm-2 col-form-label">按钮名称</label>
			<div class="col-sm-4">
				<input type="text" ng-model="form.name" class="form-control" form-check="must" form-check-alert="应用名不能为空！" />
			</div>
			<label class="col-sm-2 col-form-label">序号</label>
			<div class="col-sm-4">
				<input type="text" ng-model="form.order_no" class="form-control" form-check="must,number" form-check-alert="请填写正确的序号！"/>
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 col-form-label"><span
				class="glyphicon glyph{{form.img}}"></span> 图标</label>
			<div class="col-sm-4">
				<input type="text" class="form-control"
					style="width: 35%; display: inline;" ng-model="form.img" /> <select
					ng-model="form.img" class="form-control"style="width: 49%; display: inline;">
					<option ng-repeat="icon in icons " value="icon.name">iconfont {{icon.name}}</option>
				</select>
			</div>
			 <label  class="col-sm-2 col-form-label">效果</label>
		    <div class="col-sm-4">
		      <button type="button" class="btn btn-{{form.style}}"><i class="iconfont {{form.img}}"></i> {{form.name}}</button>
		    </div>
		</div>
		<div class="form-group row">
			<label  class="col-sm-2 col-form-label">样式</label>
		    <div class="col-sm-10">
		    	<select class="form-control" ng-model="form.style" >
		    		<option value="default">Default</option>
		    		<option value="primary">Primary</option>
		    		<option value="success">Success</option>
		    		<option value="info">Info</option>
		    		<option value="warning">Warning</option>
		    		<option value="danger">Danger</option>
		    		<option value="link">Link</option>
		    		<option value="dark">Dark</option>
		    	</select>
		    </div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 col-form-label">事件</label>
			<div class="col-sm-10">
				<input type="text" ng-model="form.event"
					class="form-control" >
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 col-form-label">类型</label>
			<div class="col-sm-4">
				<select class="form-control" ng-model="form.type">
					<option value="0">系统</option>
					<option value="1">区级</option>
					<option value="2">校级</option>
				</select>
			</div>
		</div>
		<div class="form-group row">
			<label class="col-sm-2 col-form-label">说明</label>
			<div class="col-sm-10">
				<textarea class="form-control" ng-model="form.comment"
					rows="3"></textarea>
			</div>
		</div>
	</div>
	<div class="modal-footer">
		<button ng-click="saveForm()" type="button" class="btn btn-success"><i class="iconfont icon-correct"></i>&nbsp;保存</button>
	</div>
</div>